Verification example where model-based reasoning is used to verify that the program adheres to a certain locking protocol.