Show a lock in the file tab when a file is locked (closes #258).