Guard StablePtr critical section.