kernel/os: Add helper to calculate array size
kernel/os: Add helper to calculate array size

No more sizeof()/sizeof()...

mlaz/mynewt-core,mlaz/mynewt-core,mlaz/mynewt-core,mlaz/mynewt-core,mlaz/mynewt-core