A Formal Specification of a Release Consistency Model and Its Implementation