files: Record undetected inline images on upgrade

This will look through the database and find images which appear to be
inlined in thread entries, but are not recorded as inline. It will update
the %ticket_attachment table to reflect the inline disposition of the
images.