Transaction ID extension methods need a real session handle.
examples/c/ex_data_source.c:578:6: error: variable 'is_visible' set but not used
Don't increment the data handle reference count if locking the handle fails.
refs #574