I looked through all of the DELETE queries in keyserver to see where we're handling deletion of threads. I found two queries (deleteThread and deleteInaccessibleThreads) that needed to be updated to handle deletion of thread avatar (AKA upload with container=threadID)
Depends on D7376