Use erlang:demonitor(Ref, [flush]) where applicable
Merge branch 'lh/demonitor-flush/OTP-11039' into maint

* lh/demonitor-flush/OTP-11039:
  Use erlang:demonitor(Ref, [flush]) where applicable
Merge branch 'maint'