update timeout logic

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
ptr/ref

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>