Authentication skip was always set to the default value, ignoring the setDefaultBehaviors() parameter.
Fix checkPermission() in C implementation when ownerous and/or authenticated is set.

checkPermission() from C implementation actually calls checkPermission() from
Python implementation. But as ownerous and authenticated were only set
internally in C implementation, both were set to their constructor default
values in Python implementation and thus were completely ignored.