rtld: avoid recursing on rtld_bind_lock for write
(cherry picked from commit 7cb32a0d03437f881169b1c55cce89cf70ed43dd)