swapon: check validity of swap_flags