test for mutex locks
disable debug output when doing regression tests