Store 'threads' as a number in mondoDB

This is needed by request_task query that uses $lte