Enabled lock/unlock after each command