siginfo_handler: Fix crash due to building stats too early