Implement Target hook to retrieve size of critical section.
Merge pull request #2060 from ibuclaw/critsecsize

Implement Target hook to retrieve size of critical section.