WICKET-5316: fixed synchronization problem in page access
WICKET-5316: boolean flag should be volatile
WICKET-5316: testcase showing the problem with lock releases