Produce correct implementations depending on getAndSet availablity.