meson: add dep_thread to every lib that includes threads.h