Adding assertions to make sure that we only append to the log from the write thread.  Found a code path that was appending to the log from a different thread.  This might have been affecting https://issues.apache.org/jira/browse/AMQ-4882
Fix for https://issues.apache.org/jira/browse/AMQ-4916