use static function for get_oid
modify a little thing

Signed-off-by: Yunchuan Wen <yunchuanwen@ubuntukylin.com>
use ENOEXEC replace EAGAIN, OSD will handle EAGAIN errno internal.

Signed-off-by: Yunchuan Wen <yunchuanwen@ubuntukylin.com>