Adding minmal mutexes back in to security manager.