clock: Add new clock_has_source() function