[PATCH] sim: include changes for query facility lock