Fix logic bug where lone trees would never die.  Rearrange end-of-month death code.  Add more consistency checks to attempt to debug memory corruption.
Merge branch 'ncn-devel' into memory-corruption
Put in a data lock to rule out corruption coming from dingliste_t