Fix drawing of selected bounds for Path.
Do not hittest locked items.