in debug mode, issue a warning before waiting for a lock
entab