The king in the center is not an issue anymore. It transpires that white's pawn advance on the queenside merely created weaknesses - the pawn chain is overextended.
22. f2g3  22... d6f4  23. g3f4  23... d8c7  24. f4c7 