Probing dust-obscured star formation in the most massive gamma-ray burst host galaxies