Merge "sync: use correct signed type when handling SYNC_IOC_WAIT"