Perform the get before the test in get_or_set

Covers the very unlikely case in which a key expires while Redis is performing a transaction.