Unitarity of the infinite-volume three-particle scattering amplitude arising from a finite-volume formalism