Simple thread-safe object pool in Objective-C