Core/maps: separate mutex for grid
Merge pull request #8906 from ille/GridLock

Core/Maps: separate mutex for grid
Script/Ruby Sanctum: Some cleanup and minor fixes

Solves #8573
Closes #8490
Script/Ruby Sanctum: Miss in a05e78bb18226a16f049e6b01e35597d8a2d30d9 Thanks joschiwald