MEMUNLOCK
#define MEMUNLOCK (void)pthread_mutex_unlock(&memlock)
#define MEMUNLOCK do { INSIST(memlock == 1); memlock = 0; } while (0)