Skip all tests that use threads under the hood on FreeBSD if necessary

On FreeBSD, perl must be compiled with "-pthread" in order to allow loaded
libraries to use threads.  Hence, skip the GtkRecent* and GtkFileChooser* tests
if this is not the case.