Retrieve locales for non-persisted documents

Hacky fix to retrieve locales for not-yet-in-storage documents. There should be a cleaner way to do this.

Basically we just need to determine if this document has been loaded by the UOW - but there is no `STATE_*` constant that corresponds to this -- is there a better way to do this today?