Instance lock improved