Make transactGetSockaddr locale safe