config: make sure timer is not on the timeouts list before freeing