DB-743 merge TC_LOG_MMAP implementation from MariaDB 5.5.39 to fix this bug