If you need to your DBM to shrink, you'll need to recreate it. Write a script that pulls the (key,value) pairs out of the current DBM and inserts them into a fresh one. Invoke the script periodically, with appropriate locking.
I used this technique on a low-traffic Wiki clone. A once-a-week scheduled rebuild usually shrank the DBM by 60%.