Pinocytosis and locomotion in amoebae