Checks if a user owns a key, taking into account the Master Key privilege
and the user's class keyring. This is the function to use if you need to
check a user for ownership of a key.
Parameters:
- user Pointer to the user's account structure.
- key Number of the keyto check for.
Returns:
Zero if the user does not have the key; non-zero if they do.