PosixDevicesRegistry: use local size in constructor
PosixDevicesRegistry: use local size in constructor

micro-os-plus/cmsis-plus,micro-os-plus/cmsis-plus,micro-os-plus/cmsis-plus,micro-os-plus/cmsis-plus