Don't synchronize folder changes done in shared projects

Fixes bug 19514 - Adding a folder to a shared project adds a ghost folder
to the referenced projects