Prevents usage of undefined “key” variable when removing locks 

Prevents usage of undefined “key” variable when removing locks from local storage by storing off the id values to unlock and subsequently