LOK: remove code from assert that must be compiled when not in debug mode.

Change-Id: Ibc02247ad4f1099fa31acdcef38dd5b1e95523f2