Regarding to documentation an array of users/groups can be creating and using it as the first argument of Lock() method.However if I do that the value in field $Writers in strange and does not correspond with the array mentioned above. If I use a simple string instead, everything works fine.