The prolonged X-ray flaring activity of Mrk 501 in 2014