Pockets in heavy-ion potentials and nucleon transfer