Check return value handling in the relay and dirauth stubs

In #33668 (moved), we discovered a relay module stub that didn't handle an int *have_low_ports_out return value correctly.

We should check all the relay and dirauth module return values, including pointer out and inout return values.