IDE: when closing a modified package and user does not save mods, clear modified, bug 22956

git-svn-id: http://svn.freepascal.org/svn/lazarus/trunk@42946 4005530d-fff6-0310-9dd1-cebe43e6787f