added lock_redundant_joints argument to api functions