A knight can never mate a bare king. This king is not bare: his own pawns on g6 and h3 will take away the squares he needs, and that is enough to build a mating net.