api: fix segfault in timeout handling

A botched update of reactor timeouts in the API handle implementation
for czmq-v2 caused a segfault when a reactor timer expired.