Fixed a rare crash

Related to threading; it's possible for a chunk to move when it
shouldn't, which is a problem.  This should fix it.