Dynamics of the Bose-Einstein condensation: analogy with the collapse dynamics of a classical self-gravitating Brownian gas