backport from trunk (rev #9712)
- fixed proper apply_lumps - auth needs to see changes too.
  Credits go to Nick Altmann