Strongly interacting bosons on a three-leg ladder in the presence of a homogeneous flux