Using PdfFileSecurity's method SetPrivilege(null, null. DocumentPrivilege) sets an owner password.
I remember testing it a few months ago and it did not set a password which means sometime in the last few months the behaviour changed.
further more, what password is it setting if the input password is null???