utils/misc: Add file locking context manager
utils/misc: Add file locking context manager

Enable automation locking and unlocking of a file path provided. Used to
prevent synchronisation issues between multiple wa processes.

setrofim/workload-automation,setrofim/workload-automation,setrofim/workload-automation,ARM-software/workload-automation,setrofim/workload-automation,ARM-software/workload-automation,ARM-software/workload-automation,ARM-software/workload-automation