Make use of the modules 'thread', 'yield' in the 'lock' test.