Add createThread function to create a new message thread associated with a user