Destroys the lock and frees up the memory. After calling this method, the instance can no longer be used.