swconfig: convert swdevs_lock from spinlock to mutex