Constraining properties of GRB central engines with X-ray flares