add switches 'enable_latency' and 'enable_soft_latency' to control function of io_latency_xx and soft_io_latency_xx