This resolves #564.
This resolves #540.
Add braces around single-line blocks, and remove line breaks before function-opening braces. This resolves #537.
This resolves #535.
Add mtx (mutex) to test infrastructure, in order to avoid bootstrapping complications that would result from directly using malloc_mutex. Rename test infrastructure's thread abstraction from je_thread to thd. Fix some header ordering issues.