Remove unused variables and declarations

Mono detects unused variables and private field declarations as warnings.  Because ATF has "warnings as errors" enabled, these issues appear as errors and prevent compilation.

This PR removes unused / dead code, unused variables and unused private declarations.  In scenarios where the declaration is required (e.g. in one particular Mutex case), I've added a #pragma to disable the warning instead.