WL#7305: Improve MDL scalability by using lock-free hash

Affects: Server-5.7   —   Status: Complete

Scalability of MDL subsystem for workloads where MDL_map_partition::m_mutex
becomes bottleneck can be improved by changing MDL_map to use lock-free hash
instead of our normal HASH implementation protected by mutex.

More importantly such a transition opens the way to making MDL acquisition for
DML statements lock-free.

Draft patch implementing the latter step (which includes transition to lock-free
hash) has shown promising performance results in preliminary benchmarks (e.g. in
some cases performance was on par with server version running with MDL disabled).

User Documentation
==================

http://dev.mysql.com/doc/relnotes/mysql/5.7/en/news-5-7-4.html