fix F_GETOWN return value handling