change rangefield to thread safe

Signed-off-by: Jack <jack.wgm@gmail.com>
add range declare.

Signed-off-by: Jack <jack.wgm@gmail.com>
...

Signed-off-by: Jack <jack.wgm@gmail.com>