fixed a race condition in ipc _call()