Fix bug #95: add NULL check & lock gClIocNeighborSem to avoid access NULL pointer gpClIocNeighComps