Man accused of beating someone unconscious with rock was ‘scared to snitch’ on drug dealers, court hears