Make tests for ownership of mutex less strict.