Fixed concurrency problem in HiveHistory.java

Without this fix, you sometimes get a null pointer exception when trying to submit multiple concurrent jobs with the same Shark context.