fixing typo
removed cross_thread_semaphore, replaced with a custom-rolled solution for extproc_pool using callbacks and thread-switching
fixing memory leak in js workers