Fixing jug_lock_cleanup.