The leftover locks search was creating an array rather than an object keyed by the appId. This could affect the lock cleanup and make leftover locks from one app affect the install of the app in local mode. Change-type: patch