Add error check for unexpected value at get_rusage
Add unexpected error check for after_resource_checker
Replace global pAnalysisResouceBefore to resource_checker_dir_conf struct member