Obtain lock for all callbacks