[PATCH] sim: Add support for query facility lock