[PATCH 5.15 26/64] ptp: Add generic PTP is_sync() function