Fixed a segfault bug.

With the new low-contention code, a thread would ocassionally try to
commit a non-existant microsurface to the geometry cache, which wreaked
havoc for obvious reasons...