Add context information to PerfdataWriter::CheckResultHandler.

Fixes #4743