Move interface latency control to native code

Signed-off-by: Claudio Matsuoka <cmatsuoka@gmail.com>