rtld: unstaticise lockinfo and obj_from_addr()
(cherry picked from commit 4d7f08c84bcfcd75ba23b06e07a8e5dba1d4a44f)