Add strongly-typed LockedFileException

#496