Convert msgq len fields into atomics

In order to be able to read process private message queue without a need
to acquire a main process lock we might consider switching regular
integers representing message queue length with their SMP atomic
equivalents.