Global private equity giant KKR has bought a majority stake in Spanish vocational training business MasterD.