Update ax_boost_thread.m4

Upgraded to serial 27.

- Use 'ls -r' in order to try newer version before older ones. Simplify ls pattern so also dylibs are detected.