"What are we going to do with it?" Hermione asked.
"Keep it safe 'til we work out how to destroy it," Harry replied, and, little though he wanted to, he hung the chain around his own neck, dropping the locket out of sight beneath his robes, where it rested against his chest beside the pouch Hagrid had given him.
Harry Potter and the Deathly Hallows
I don't quite understand "little though he wanted to" in this context. What does it mean?