jsonrpc: Simple demonstration on how jcon can be locked for streams
This is a bit of overkill now that we simply accumulate the entire
JSON response in the buffer before flushing, but when we move to
streamed responses it allows us to have a single command that has
exclusive access to the out direction of the JSON-RPC connection.
@for f in lightningd/*.h lightningd/*/*.h;doif ! echo$(LIGHTNINGD_HEADERS_NOGEN)$(LIGHTNINGD_HEADERS_GEN)""| grep -q "$$f ";thenecho$$f not mentioned in LIGHTNINGD_HEADERS_NOGEN or LIGHTNINGD_HEADERS_GEN >&2;exit 1;fi;done
@for f in lightningd/*.h lightningd/*/*.h;doif ! echo$(LIGHTNINGD_HEADERS_NOGEN)$(LIGHTNINGD_HEADERS_GEN)""| grep -q "$$f ";thenecho$$f not mentioned in LIGHTNINGD_HEADERS_NOGEN or LIGHTNINGD_HEADERS_GEN >&2;exit 1;fi;done