[Bug 211881] timer_*() functions don't return EINVAL on invalid timer_id