Write a program to detect cyclic dependencies in a system of access control roles.
Represent roles as a dictionary mapping each role to the roles it depends on. Implement has_role_cycle(roles), returning True if any dependency cycle exists and False otherwise. All referenced roles are assumed to appear as keys in the dictionary.
def has_role_cycle(roles):