Move resetting NOSAVE back to ProcessLocalEvent_Lower()

If it is reset after a call to UnlockPath() (as is the previous
behavior), but before the PathLocker evaluates whether or not it should
save the event to the database, the event will get wrongly added to the
database.
Add offline file deletion detection to startup