rtld-elf/paths.h: Make it usable outside rtld
(cherry picked from commit 33dba3bb0ec2a0f0a401bed145cc0ef95f37a5c3)