added instance counters on key functions

trying to avoid a race condition that results in multiple instances of
the poller and/or the sleep checker.