tm: fix script-level read operations on the timeout variables

Read operations before setting them or calling t_relay() would
return 0.

Reported by Jamuel Starkey