osd: Make RPGTransaction::get_bytes_written return the correct size.

It record size larger than clien wrote. It should like
ECTransaction::get_bytes_written only return the size which clien
wrote. It should contain omap data.

Fixes: #9342
Signed-off-by: Ma Jianpeng <jianpeng.ma@intel.com>