Lock the IQ before adding bio to the queue at timeout
Use setbit/clearbit functions to set/clear bits in flags to protect it.