ptp: fix the race between the release of ptp_clock and cdev