Locking/unlocking the scan unit