[threads] Rework MonoThreadInfoCallbacks.thread_{register,detach,unregister} callback...