(_IO_flush_all_lockp): New function. The same code