rtc-ds1742: fix races around device registration