[CHEF-3446] refactor user creation/unlocking support for smartos
Merge branch 'CHEF-3446'