Make errno and return value work for async syscalls.