smp,csd: Throw an error if a CSD lock is stuck for too long