Fix standard library compilation in erlang grade.

library/thread.m:
	Workaround a problem that was preventing this module from compiling
	successfully in the erlang grade.