Support the `done` callback in Mocha's BDD interface.

Fixes issue 7277.