mnesia: Improve tests

Need to re-raise the match macro if inside transaction
mnesia: Fix timing issue

Be sure to gather release_tid msgs even though we have a mnesia_down
in the queue.
mnesia: Handle failed net_loads better

In case of a failed net load and no more available copies,
remove the table from late_load_queue, otherwise tables
can not be forced loaded.
Merge branch 'dgud/mnesia/force-load-hangs/OTP-11948' into maint

* dgud/mnesia/force-load-hangs/OTP-11948:
  mnesia: Handle failed net_loads better
Merge branch 'dgud/testcasecuddling' into maint

* dgud/testcasecuddling:
  mnesia: Improve tests
Merge branch 'dgud/mnesia/timing-issue' into maint

* dgud/mnesia/timing-issue:
  mnesia: Fix timing issue
Optimize tid lock table

By making the ets table mnesia_tid_locks an ordered set instead of a
bag, the time for inserting locks for a transaction with large number
of locks is reduced significantly.
Merge branch 'gorillainduction/improve_mnesia_locker_complexity' into maint

* gorillainduction/improve_mnesia_locker_complexity:
  Optimize tid lock table

OTP-11981
Prepare release