Fix ipc sync function's return value