Added lock with specified password.