This can lead to deadlocks and should be avoided. More context: https://github.com/dotnet/runtime/pull/97052#issuecomment-1910570151