configure: Check that __thread works with PIC.