syslog-ng.h: disable Glib's deprecation warnings

The latest glib splits out a lot of deprecations around GThread related
function calls. Get rid of them for now.

Signed-off-by: Balazs Scheidler <bazsi@balabit.hu>
amqp: Fix a possible crash on disconnect

If we're not connected when attempting to disconnect, bail out early, as
the underlying library does not handle a NULL connection gracefully.

Signed-off-by: Gergely Nagy <algernon@balabit.hu>
value-pairs: Correctly exclude nv-pairs when they're in the base scope

When trying to decide whether a particular nvpair should be included in
the value-pairs set, we did not handle exclusions well: if the key was
in the default set, we included it anyway, regardless of exclusions.

With this patch, when the key is explicitly excluded or included, that
will be respected, regardless of whether it is in the default set or
not.

Also added a test case to trigger the original bug.

Signed-off-by: Gergely Nagy <algernon@balabit.hu>