LPS-31379 Edit option shouldn't be enabled in trashed messages.

A Thread in trash or in a trashed Category will be considered as locked.