Fix db corruption happening while changing primaryGroupID (bug #13418)
These patches prevent the corruption from happening and allow samba-tool dbcheck to repair an affected database.
These patches prevent the corruption from happening and allow samba-tool dbcheck to repair an affected database.