Adds a NSLock in favour of the synchonized(self) blocks.