Locally tested with Linux with a nfs drive set up with a path ending with a slash like
192.168.1.16:/home/meven/ /media/NFS nfs defaults,user,auto,noatime,bg 0 0
After patch
$ solid-hardware list
[...]
udi = '/org/kde/fstab/192.168.1.16:/home/meven' (mounted drive as returned by getmntent)
Only one icon appears for the drive in places panel in Dolphin.
Not tested with getmntinfo / BSD code path, but the patch does not alter the code behavior much and don't foresee any risk there.