XyCraft errors still occasionally occuring - decompiler time! - this should fix them, however locking isn't very fine-grained. Fix #213

Signed-off-by: Ross Allan <rallanpcl@gmail.com>