Eliminate spinlock in multithreaded BGZF writer (bgzf_mt).

This commit also modifies the interpretation of n_threads: it now means the
number of worker threads, in addition to the main thread. If the main thread
is largely I/O bound, as is often the case, this should more closely match
user expectation.