os_calls.c: support BSD's PEERCRED