Embedded lock in history struct and fixed default --identity key location

What if we check if `options.Identity == "~/.ssh/id_rsa"`, and then do the same thing?