[stylesheet] Implement Reader/Writer locks

This commit makes stylesshet changes atomic. Fixes issue #15
[log] Fix typo