uloop: fix a regression in timeout handling