new attempt to fix atomic queue lock for TARGET_OS_IS_IPHONE
Merge branch 'issue13199' into nicedevel