Pinned Vorticity in Rotating Superfluids, with Application to Neutron Stars