Use platform lib for threads in testsuite

Change-Id: I950f72319dfc0089a54973039248935c3c03c879
Reviewed-on: http://review.couchbase.org/31421
Reviewed-by: Michael Wiederhold <mike@couchbase.com>
Tested-by: Michael Wiederhold <mike@couchbase.com>