fixed how we get the appid for acquiring locks