Convert some loggers to statics to reduce collisions on locks inside logging hierarchy
Avoid work if context is no-op in ThreadContext.inherit()
Make sure MSPEncoder decrements ref count for all written messages.
Fix BaseMSPMessage to write out header and payload without backtracking
Piggyback flush of prepared statement close during redist.