Synchronize access to Commands.