realtek: Use built-in functionality for timeout loop