* Fix credit only drain race * Refactor commit credits for tests * Fix tests to use commit_credits_unsafe