Small fixes for restore objects in python plugin

Fixed a bool inversion and set forgotten
sp->object
Support for SLE-12 in spec file
Fix build when using GNUTLS instead of OpenSSL
Revert "Sync LMDB code."

This reverts commit c028a49e976eb747c11b7c38b6620176e855971c.

Wait until upstream fixes pthread mess current code has problems
on several distributions.