[S390] Add debug_register_mode() function to debug feature API