Testing general scalar-tensor gravity and massive gravity with cluster lensing