[media] rc: add locking to fix register/show race