Part of bzrlib.tests.per_lock
These test the conformance of all the lock variations to the expected API.