Added a runSync method to the frontier that allows some code to be run
while obtaining the Frontier mutex. Can be used to synchronize certain
activities between the crawlers.