Add OFMutex and use it in OFTCPSocket instead of @synchronized.