lockstat: Use gelf.h instead of playing games with the preprocessor
This reverts a portion of 1477dd823ee ("Merge OpenZFS support in to
HEAD."). No functional change intended.
MFC after: 1 week
(cherry picked from commit 49e3972afc1112f95863a04cea7a4401b78dfd1f)