Cleanup: lock some variables.