Fixed how we get appid for acquire lock