fixes for --embedded
MDEV-6961: mysqld should terminate when started with --wsrep-recover

Fixed the condition to make sure mysqld process terminates when
started with wsrep-recover.
MDEV-4018 : Feature Request: microseconds in GET_LOCK()

Updated MDL_context's lock methods to accept double precision
lock_wait_timeout.
rdiff not needed anymore
Make test results stable.

(just like in the test below)
MDEV-4412 : SLOW QUERY LOG - add affected rows (UPDATE / DELETE) in slow query log

Added Rows_affected to slow query log & mysql.slow_log table.
MDEV-7188 main.signal_demo3 and sys_vars.max_sp_recursion_depth_func fail in biuldbot on labrador with Thread stack overrun

reduce stack requirememnts for CALL by just a little bit
update result files
don't skip wsrep position recovery silently

control scripts (mysqld_safe for example) want to know
whether a recovery was successful or not.
total silence is too suspicious to be trusted.
fix mysqld_safe to work

local function variable was overwriting the global one.
also remove unused variable expansion.
cleanup: freshen up CREATE SERVER code

* pass LEX_STRING's from the parser, don't ignore the length only to strlen later
* init LEX::server_options only for SERVER commands, not for every statement
* don't put temporary values into a global persistent memroot

but really it's just scratching a surface
MDEV-6311 Add errors on CREATE SERVER

fail CREATE SERVER foreign data wrapper is "mysql"
and neither HOST nor SOCKET are specified.

Also default PORT to 3306 (again, only for foreign
data wrapper "mysql")
cleanup: ptr_cmp

1. don't cast size_t* to int*
2. remove long obsolete register specifier
cleanup: reuse MY_CHECK_AND_SET_COMPILER_FLAG in sphinx/CMakeLists.txt
cleanup: s/const CHARSET_INFO/CHARSET_INFO/

as CHARSET_INFO is already const, using const on it
is redundant and results in compiler warnings (on Windows)
oqgraph cleanup: remove casts
MDEV-5871 support assisted discovery in oqgraph v3
MDEV-6894 Enable SEQUENCE engine by default
MDEV-6980 OUT parameters in PREPARE

revert the patch for "out parameters in prepare"
MDEV-6895 switch to dynamic libjemalloc.so