pthread.m4: Add missing 'test' to conditional