Only build tests/objc_sync if we have threads