Fix branch coverage for un-called callbacks. (#6242) Use 'mock.Mock()' w/ 'return_value' True, rather than inlining 'lambda _: True' in cases where the callback doesn't get called.