learn.at: fix a race in "self-modifying flow with hard_timeout" test