as-iosched: fix inconsistent ioc->lock context