ロックできなかったらやめるだけだったらこれでいいか
if (Monitor.TryEnter(lockObj)) { try { 処理 } finally { Monitor.Exit(lockObj); } }