Avoiding plan section lock error