change how thread locks work so that plugin startup fails quickly and gracefully