Passes by reference in the syscall_pwait test to avoid a copy. This was suggested by an automated clang-tidy tool.