[core] Timeout issue when accessing the job history

Need to optimize getJobCounters in ThriftJobTrackerPlugin to avoid
blocking on JobTracker lock.