Fixes #5081: Specify -lpthread during LMDB presence detection of CFEngin...

...e configure script

Ticket: http://www.rudder-project.org/redmine/issues/5081

To be merged in 2.11