Add ./configure option to use POSIX locks for Helgrind analysis.