[Fix #439] Add a workaround for race condition bug in cider-restart