Changed timer (under windows) to use beginthreadex which is supposed
to be more robust, and added CloseHandle to free the handle to allow reclamation of some thread management space.
Authored by: dwarren 2013-03-08
Parent: [r7736]
Child: [r7738]