Fixed timeouts for blpop and brpop.