Lock username if juju version is less than 1.21.