Fix for AMQ-5113. Fixed race condition in onMessage for testSimulatenousCron which caused intermittent failures