If we fail to attach the stack key that means we've already attached the wire
key. That means the state could be found by other cores, and given that we then
free it, be used after free.
Fix this by not releasing the ID hashrow lock and key locks, ensuring the state
cannot be found by other cores.
Reported by: markj
Submitted by: glebius
MFC after: 3 weeks
Sponsored by: Rubicon Communications, LLC ("Netgate")