Protons in non-spherical nuclear phases of a neutron star crust