pthread Sync in env_posix