Lock i32 registers before and after preparing the function arguments to prevent they are overwritten.