-Dusethreads enables threading in Perl. It is described in the INSTALL file in the perl source tree, which also describes the rest of the compilation process.
Perl 6 - links to (nearly) everything that is Perl 6.
Does it mean that it installs a thread module or there are some internal code base protection that are copiled and used to prevent race conditions in threads?