When making a bat writable, also create new copy if shared and already writable. BATsetaccess creates a new copy if a bat is made writable but it there are views on it.  However, it didn't do this if the mode was already the same. This is part of the fix for bug 3149.
When making a bat writable, also create new copy if shared and already writable.
BATsetaccess creates a new copy if a bat is made writable but it there
are views on it.  However, it didn't do this if the mode was already
the same.
This is part of the fix for bug 3149.

zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb,zyzyis/monetdb