It seems a little odd to put these functions in the `link_name = "dl"` block because that's not the library that they come from. I'd be ok with scoping the `dlerror_lock` functions to just the relevant function that uses them as well.