Implement the max frame limit on semi-auto tracking.

Signed-off-by: Jean-Yves Tinevez <jean-yves.tinevez@pasteur.fr>