tests/unix_sockets: Rename function for next seq_num

Also make the function a property