Blockade in c#