Problem
PR #34692 kept the simplified two-tier -dbcache default from #34641: use 1024 MiB on 64-bit systems with at least 4 GiB of detected RAM, and otherwise keep 450 MiB.
The policy is still split across generic cache and system helpers, while kernel still initializes from a fixed 450 MiB value instead of the shared dbcache default.
This makes it harder to see which callers use the current dbcache policy and leaves node, Qt, and kernel paths less obviously aligned.
Fix
Move RAM detection to common/system_ram and move dbcache constants/helpers to node/dbcache, then route the remaining dbcache default users through node::GetDefaultDBCache().
This is a simplified follow-up to #34641, keeping the #34692 two-tier default unchanged. It does not reintroduce continuous RAM-aware default sizing, and keeps the remaining cleanup focused on naming, typing, and test coverage around the shared dbcache policy.