Formation of massive black holes in rapidly growing pre-galactic gas clouds