tests: Fix OpenchangeDB logger test to reset stats on every test

- allocate root mem context with talloc_new() - easier tracking
- use checked_feature() so we reset everything on every test
test: Add 'debuglevel' and 'option' command line options