Make this an object for less GC churn.

```scala
object Retry {
  def apply[T](n: Int)(f: => T): T => {
    ...
  }
}
```