I don't understand why this problem is specific to XWikiUserSheet.
I guess XWikiUserSheet is the only one that tries to modify that map. My understanding is that this issue is not about making the map immutable but fix the code in XWikiUserSheet which assume the map is mutable.
This message was sent by Atlassian Jira (v9.3.0#930000-sha1:287aeb6)
If image attachments aren't displayed, see this article.