Change signature for get_base_gid for security

It seems that get_base_gid() now is expected to be called with a
possibly defaulted parameter. The signatures of security's components
now align with other functions of that sort.