Fix type issue in mlock script.