in reply to Re^3: Threaded MPM Sharing Variables (this time with complete test code)
in thread Threaded MPM Sharing Variables (this time with complete test code)

An even better solution is to add

sleep(1);

before the line

logTestMessage('Releasing lock.');
Then you can press F5 as much as you want (at least five times).