Rotary-piston machines or pumps with the working-chamber walls at least partly resiliently deformable