Unable to upload to XIAO MG24

Yes, lock bit can be checked using Silicon Labs Commander and JLink (or Silabs’ equivalent).

The SAMD11 is the on-board programmer, so USB->SWD. Allows OpenOCD to debug using GDB.