Fix Error Thread Sync in iOS , fix #2