Add locking/unlocking API endpoints for Terraform state backend

Goal

Add the ability to lock/unlock Terraform state via the API

Definition of done

  • Should support lock and unlock
  • Should be auditable (locked_by, locked_at)
Edited by Matt Kasa