The companionship, responsibility and sense of purpose that come with being a pet owner can indeed extend your life expectancy, research finds, but there are some caveats.