Return the thread's active snapshot. If no thread snapshot is active then the current global snapshot is used.