tests/unit: convert unit tests from setenv to putenv usage

- tests/unit/db_concurrent_test.c
- tests/unit/db_test.c
- tests/unit/dbm_migration_bundles_test.c
- tests/unit/lastseen_migration_test.c
- tests/unit/lastseen_test.c