I was having the same issue as the original poster, with motion blur moving the position of a mask I created and the tip below solved my problem entirely:
“by Roland R. Kahlenberg on Oct 12, 2013 at 12:24:26 am
Shutter Phase should almost always be -1/2 of Shutter Angle when doing inserts in conjunction with matchmoving. The formula ensures that AE’s MB is centered to the movement which is what is the norm for realworld cameras.
Rotoscoping MB objects should require analogous Shutter Phase/Shutter Angle settings.”