Chemical Abundances of M-dwarfs from the APOGEE Survey. I. The Exoplanet Hosting Stars Kepler-138 and Kepler-186