Constraining the efficiency of cosmic ray acceleration by cluster shocks