Fix MgBaseShape::setFlag(): fail to call OSAtomicCompareAndSwapLong.
Not delete locked shapes.
Merge pull request #3 from lileichuan/develop

Fix for HzGlyph app.