Fix internal visibility state of dock elements and don't lock items.