Added logging.c as a source to libdb.la in tests/unit

Because all mutex locking/unlocking now require Log(). This caused a
bunch of changes like renaming libdb.la intermediate objects (by
redefining libdb_la_CPPFLAGS) and removing lots of logging stubs from
various tests.