Lock username

Lock the username if juju version is less than 1.21.