Fixes to add_ssh_key/remove_ssh_key user op

Add application_locked? method to check if the app is already locked or not.