src/timer.h: Added timer_tryreset and timer_tryrestart

These macro definitions can be used to replace constructs like this:

if (timer_expired(&timer)) {
	timer_restart(&timer);
	...
}

With:

if (timer_tryrestart(&timer)) {
	...
}