locking: add new down_timeout() function