None of these helped for me. Every now and again, when continually running big programs with lots of output data sets and continually viewing them in the output data tab, EG seems to hang onto the lock for one. When I run a snippet of code subsequently I get errors that the data set is locked, but i've not tabs available to close. I tried the "Close All" but that didn't do anything. I have to kill the session and start again :(