Context manager generator for retry block pattern and decorator.

Seems odd to have `isolation_level_setup` have a default value, given that the function name has no indication about what the isolation level is.