Add -debugmutex flag for debugging store locks