NXP-14898 MemoryDirectorySession allow to create entry even if it's in read-only mode

Deny to create new entry when the memory diretory is in read-only mode to allow have the same behavior than other directory types in unit tests