rt: Use the correct global change_dir lock