Refactor: libpe_status,pengine: replace get_failcount_all() with flag
simplifies to a single interface for getting failcount