A weak limit theorem for generalized multifractional Brownian motion