Fix #61: Add getLocks test. Fix restart failure.