Important bugfix: the masterlock is now correctly initialized for each context, rather than only for the first one