Add DomainObject::lockAndReload method

Lock an object even if its contents have changed in the database.