Called just after the buffer is loaded from a file. The argument to the method specifies whether the load was sucessful or not. See also on-load-file.
Updates the buffer's lock status based on the status of the file that was loaded.