I've cleaned it up and bit and put the mutex where it really belongs, making the function itself thread-safe. I also leveraged a mutex field we hadn't used up to now, saving any API changes...
fix_mod_proxy_thread_unsafety-2.patch
Description: Binary data