IPC: fix error check in all new xxx_lock() and xxx_exit_ns() functions