Protect _threads with a mutex since it may be updated from