fixing  Deadlock with application during minor version slony upgrade