Sample isolator module copied from cgroups/cpu.

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