doc: document domain.enter() and domain.exit()

Adds the documentation requested in #5017.