Added static mutex to bli_init and bli_finalize