Shaft sealings specially adapted for rotary-piston machines or pumps