setup: nsv_set mutexes 0 [ns_mutex create]
thread A: ns_mutex lock [nsv_get mutexes 0]
thread B: ns_mutex destroy [nsv_get mutexes 0]
poof, there goes your server.