(THREAD_SETMEM): Use size of member element to decide which code to use.