Add function 'thread_create' to mm.