compat: return -EFAULT on error in waitid()