SUP-806N #comment media updateContent mutex using kLockBase

wrapping replaceResource with kLock and correction of error message