Avoid polling global transaction state if nothing has changed.
Back out an unrelated change to memory allocation.
Keep local state across {get,release}_snapshot calls so that the correct data is read.
Merge pull request #478 from wiredtiger/txn-generation

Use generation numbers to avoid polling global transaction state if nothing has changed.