tests/unix_sockets: Remove unused functions