The stress of being around a stranger can dampen people's ability to feel their pain, new research shows.