Fix the async calls for the posix_unlink and posix_rmdir.