Also note that (def another-var (with-meta a-var {:foo :bar})) does not bind metadata to Var, but to the value. And since your a-var example contains an integer, I would not expect your example to work at all, since integers cannot contain metadata.
user=> (def a-var 2)
kotarak
source share