Lock around pooling operations to prevent race conditions