Pseudo-Nambu-Goldstone dark matter from gauged U(1)B−L symmetry