merge: Patch for issue #13335. Make non-transactional updates in row-based logging mode honor the binlog_direct_non_transactional_updates system variable, i.e. the corresponding events are written directly to the binary log rather than the transaction cache.