$afterResolving should be called for non queued commands
Use exclusive lock on session write.
Merge pull request #6846 from xsbeats/bugfix/bus-dispatcher-after-resolve

[5.0] $afterResolving should be called for non queued commands
Put lock flag on filesystem class.
Merge branch '4.2'