(_IO_seekoff): Acquire lock before doing the work.