WL#7050: InnoDB: Refactor redo log write code for better performance

Status: Complete

One of the very performance critical function in inndob code is log_write_up_to(). 
This function writes to redo log files upto a certain LSN and also optionally 
flushes the writes to the disk.

This WL is about squeezing some extra performance out of this function without any 
major architectural change. It attempts to re-write this code removing extra bits 
needed if we have multiple log groups (currently we only support one log group). 
It also removes an extra event which was probably never used but was always reset 
while holding the log_sys::mutex. Finally we remove an extra acquisition of 
log_sys::mutex in case where we are just doing write (no flush requested).

This WL should improve the performance for any workload that is heavily contended 
on log_sys::mutex and for which innodb_flush_log_at_trx_commit = 2.