lock signals during resize and during cursor placement thread hack