s3:smbd: fix interaction between chown and SD flags