Massive Stars in the SDSS-IV/APOGEE-2 Survey. II. OB-stars in the W345 Complexes