Pool: Localize threading.Lock so that it can be patched