CRAFTERCMS-212; CRAFTERCMS-214

CRAFTERCMS-212:
Fixed issue that was causing timeout deadlock on object state table.

CRAFTERCMS-214
Fixed issue that was causing server to completely block on following use case:
1) Schedule content to go live at some time at future
2) When content is about to be published, delete it