Prevent dead lock when multiple threads want to remove the same proxy server