Implement latency statistics for the "icinga" check.

Fixes #5325
Fix crash in icinga::Log.

Fixes #5330