Insight into Kondo screening in the intermediate-valence compound SmOs4Sb12 uncovered by soft x-ray magnetic circular dichroism