Add Andre Albsmeieir's pthread test

From http://lists.freebsd.org/pipermail/freebsd-hackers/2014-February/044280.html
Rename sample code and add reference to source in comment