lib/tdb2: Convert tdb2 to a standalone library