The Simons Observatory: Bandpass and polarization-angle calibration requirements for B-mode searches