The effect of joint locks in underactuated hand prostheses