static <A> A evalWithTimeoutOrNullReleasingDBLock(int timeoutMS, F0<A> f) {
  ret (A) eitherAOpt(evalWithTimeoutReleasingDBLock(timeoutMS, f));
}

static <A> A evalWithTimeoutOrNullReleasingDBLock(double timeoutSeconds, F0<A> f) {
  ret (A) eitherAOpt(evalWithTimeoutReleasingDBLock(timeoutSeconds, f));
}