Make `check_print_stats` inline.

To fix "unused function" warning when including `check.h` from another
project.