The correspondence between stochastic mechanics and quantum mechanics on multiply connected configuration spaces