The SCA$LOCK_LIBRARY routine locks all the physical libraries in the current virtual library list so that they cannot be modified.