api: fix rx timeout thread busy loop after reconnect