Pets in Greater Boston are losing their homes due to high housing costs and a lack of pet-friendly and affordable homes, local shelters say.