Concurrency fixes to GELF ChunkManager and bugfix for GELF UDP Input.

Hello Lennart,

We found a pair of bugs in UDP input and chunk manager while doing internal testing. So i reopen pull request again to make you aware of these fixes.

The single last commit contains them. Hope you'll find this useful.