ipc: fix timeout handling in async