A person who has only worked in the home can qualify for Medicare based on their spouse’s work record. Here’s how it works.