Pilot-operated check valve