Generate u32 filter handle in user level to work around MESOS-1617.

Review: https://reviews.apache.org/r/23701