Avoid collision of status flags in tree items when updating tree nodes

Fixes silverstripe/silverstripe-cms#445
See https://github.com/silverstripe/silverstripe-framework/pull/1996
Thanks to Jean-Fabien for getting this started
Merge pull request #2014 from chillu/pulls/445-tree-statusflags

Avoid collision of status flags in tree items when updating tree nodes