I have the same problem with Lightroom with the DFA 100 WR, DA*55 and DA 15 (I don't currently have them all, but still have all the pics in a large "Unknown Lens" pile).
When I open files in Photoshop and look at the exif data, I see a lens like the FA77 will say:
aux:Lens: smc PENTAX-FA 77mm F1.8 Limited
aux:LensID: 4 24
aux:LensInfo: 770/10 770/10 18/10 18/10
whereas the DFA 100 WR will say:
aux:LensID: 7 58
and won't have the other fields.
So most likely PhotoMe is reading the LensID (at least when it doesn't find "Lens"). I've gotta assume that these lens ID's are unique, though the numbers seem pretty low...
Unfortunately Lightroom's pretty inflexible about how you search (you can't even search via focal length) so I'm not sure how to turn that info into anything.
But you're on to something