Bug 1016538 - Fix unbalanced locking logic in tiling. r=Bas