util/oslib-posix: Fix missing unlock in the error path of os_mem_prealloc()