A man who kicked out at police protecting a mosque during widespread disorder in Sunderland has been jailed.