Mongo error : Could not lock auth data update lock. on root user
You are actually using root and admin database by your query 
'use root' or 'use admin'

use root will not change your user it will just change your database.

So to add user or role .you need to login by root.As you have mentioned in very first line actually you are login as "myadmin " on database "admin"