Record SETUID/SETGID changes to files as fixed promises.

Redmine #5834