Synchronization on any object is not supported on every platform and will be removed from the common standard library soon.
Executes the given function block while holding the monitor of the given object lock.