Original: He catches him and whips him as a thief, then has him locked up all in front of Katerina who cannot stop him because she remains locked in her room and when finally she managed to climb down the window the other servants stop her.
Simplified: When Boris finds out he is furious and whips Sergei and locks him up.