ipdb: fix callback's lock
ipdb: `sleep(0.2)` after `commit()`, let IPDB to stabilize
ipdb: don't run callbacks on the stopped db
tests: fix possible exception case in test_ipdb
tests: fix typo