fix Issue 11216 - Make synchronized statement `nothrow`

- require Object.Monitor lock and unlock functions to be nothrow

- change methods of all core.sync classes to nothrow
Merge pull request #1013 from MartinNowak/fix11216

fix Issue 11216 - Make synchronized statement `nothrow`