tests/unix_sockets: Un-duplicate request code path