Add missing "locked" param.

I need to figure out a way to merge these changes :\