bug #664 - apply fixes: arg1 -> sec_timeout, lock on function, seconds -> total_seconds()