add threads as an optional use dep

Package-Manager: portage-2.1.12.2