Changed internal code of 'lockedBy' function

The way that real names are discovered no longer directly depends on LDAP, making the code slightly more portable.