This question has been resolved in another question I posted. Basically there were indeed two copies of the static variable -- one in the main program and one in the shared library, but the runtime linker was resolving both copies to the main programs copy. See this question for more information:
Main Program and Shared Library initializes same static variable in __static_initialization_and_destruction_0