[PATCH openEuler-5.10-LTS 133/168] md: protect md_unregister_thread from reentrancy