unlock global vars before sourcing session file, then re-lock them after sourcing session file