Add test using maplist for dynamic inputs

Ref Redmine:3315
When deleting, entry not found should not be logged as an error
set default maxreaders for lastseen -> 504
Adapt lastseen.lmdb's maxreaders to the serverd maxconnections setting
RM3979: reworked a test to use putenv() instead of setenv().
Cleanup OpenSSL locking functions.
Error checking mutexes for OpenSSL.
Introduced proper checking and logging of our locking primitives.

ThreadLock(), ThreadUnlock() should now be preferred against
native pthread_mutex_lock().
Use error checking mutexes for our dbm API.
Redmine#5339: add packageupdatesmatching function
Add IsValidVariableName regex global to valgrind-suppressions
Allow dashes in values for body copy_from servers attribute

Add unit test

Close #5268
Redmine#5315: use new convenience bundles, replacing some dcs bundles
It was being checked as a bool but was returning int.
Fix sscanf return in StringItemNumberLess.

sscanf may return -1. reported by valgrind.
Merge pull request #1619 from sigurdteigen/master

Fix sscanf return in StringItemNumberLess.
Merge pull request #1617 from jimis/varfix2

It was being checked as a bool but was returning int.
Assert we're not leaking memory

As suggested by @kacfengine.
Log errors properly for failing pthread operations

As suggested by @kacfengine.
Merge pull request #1611 from jimis/agent_protocol_version

Error checking mutexes and detection of errors.