Snails are about as closely related to humans as daffodils. Their gender system has no bearing on that of ours, which has been a binary system for the entire evolutionary history of the order of mammals -- and even before that.