Molecular absorption in variable brightest cluster galaxies