Fixed JobTracker to use explicit synchronization.

Rather than forcing every method to be synchronized, we should use
explicit synchronization.  Otherwise, when the JobTracker is very busy,
we see excessive lock wait times.  This change helps to resolve that
issue.

@florianleibert @benh