Synchronize writing LevelProgress' currentBoard to database with other threads, namely to prevent AlligatorToJson from finishing too late