Update Thread.deleted when question is restored

When question post was restored, i.e. undeleted, the corresponding threads deleted field was not updated. This fixes that and adds a datamigration to fix the existing thread records