use u64 instead of unsigned long for timeout and thresh, also set timeout in ns for consistency with thresh

Signed-off-by: Julien Desfossez <jdesfossez@efficios.com>