alarmtimers: Add try_to_cancel functionality