Give a more precise error when ACL cannot be set
(cherry picked from commit b1eaeb612aefc26dcc33c847358ece184787e01b)