Version locking fixes:
The commit_ok and changed_list were sometimes being accessed without holding the lock. Comments in structure. Do not allow an rdataset to be added to a non-writer version. Do not allow closeversion() to commit a writer version unless the ref count is one. We were not incrementing the version ref count when creating an rdataset iterator.
Showing with 29 additions and 12 deletions