Remove dependency on the threads library in the example plugin

Signed-off-by: John Else <john.else@citrix.com>