add lock for m* models