Moved lock() lines to PathFillRenderer because that is where the unlock() lines are