proper error handling for fcntl F_GETOWN on modern kernels