Traction machine shaft seal