CO emission and associated H I absorption from a massive gas reservoir surrounding the z = 3 radio galaxy B3 J2330+3927