Regarding 9)
Frank, could it be that these cases are when permission_p is referenced in a scheduled procedure?
I have run into this error a few times under these circumstances. In these cases, I find a way to pass the user_id with other parameters to the scheduled procs, or make a procedure dependency that doesn't reference permissions (and check permissions before scheduling). The scheduled proc doesn't have ad_conn properties.
cheers,
Ben