Wrapper for functions that operate under the assumption of serializable isolation level.