BUG FIXES:

1) Not releasing mutex resources back to the system correctly.
2) Incorrectly masked bits off in the CAP.TO register.
Merge branch 'master' into github_master