fixed io_lock crashes on dalai and redpj