Prevents usage of undefined “key” variable when removing locks from local storage by storing off the id values to unlock and subsequently
Formatting + better key check + length caching in content/lock.js.