Unpleasant odors can pop up in the most inconvenient places, including musty closets, oft-used bathrooms and overflowing laundry hampers—and it can be frustrating to come home to unwelcome scents.